#ifndef FASTNET_VISUALIZE_HH
#define FASTNET_VISUALIZE_HH

#include "SDL2/SDL.h"
#include "builder.hh"

namespace brain {

    class Node;

    class NetworkWindow {
        Builder* builder;
        SDL_Window* window;
        SDL_Renderer* renderer;


        int width, height;
        
        bool clicked = false;
        bool incoming = false;
        Node const* selected;

    public:
        NetworkWindow(int width, int height, Builder* builder);
        ~NetworkWindow();

        void show();
        void render();
        void wait (long ms);

        void plain();
        void click(int x, int y, bool);
    };

}

#endif
